/*
 * crc.h
 *
 *  Created on: May 28, 2020
 *      Author: daniel
 */

#ifndef INC_COMMON_CRC_H_
#define INC_COMMON_CRC_H_

#include <stdint.h>

//unsigned short crc16(char *data_p, unsigned short length);
uint16_t MODBUS_CRC16_v2( const unsigned char *buf, unsigned int len );

#define LORA_PAYLOAD_CRC16		MODBUS_CRC16_v2

#endif /* INC_COMMON_CRC_H_ */
